home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 765 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  889 b 

  1. Path: gryphon.phoenix.net!usenet
  2. From: brucew@phoenix.net (Bruce Wedding)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A problem with fprintf
  5. Date: Tue, 09 Jan 1996 05:24:52 GMT
  6. Organization: BranPaul Systems
  7. Message-ID: <4csrrr$f06@gryphon.phoenix.net>
  8. References: <4cs8ie$5ru@no-names.nerdc.ufl.edu>
  9. NNTP-Posting-Host: dial102.phoenix.net
  10. X-Newsreader: Moe's Newsreader    
  11.  
  12. vtigadi@cis.ufl.edu (Vishwajit Tigadi) wrote:
  13.  
  14. >I have a piece of code where the following statement fits in:
  15. >
  16. >fprintf(fp, "%s\n", src);
  17.  
  18. >signal SEGV (segmentation violation) in malloc at 0xef778634
  19. >malloc+0x150:   st      %o0, [%l5]
  20.  
  21. Are you checking the return value of malloc()?  Show us the code with
  22. the malloc in it.
  23.  
  24. Bruce D. Wedding                        Have Compiler, Will Travel!
  25.               Perspicacious Programming Performed Promptly
  26. Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
  27.  
  28.